<html lang="en"  xmlns:th="http://www.thymeleaf.org" >
<!--用户查看或者修改-->
<head th:include="frame/fm/res :: uploadCSS">
    <meta charset="UTF-8"/>
</head>
<head>
    <script th:inline="JavaScript">
        var userId = [[${userId}]];
        var type = [[${type}]];
        var stype = [[${stype}]];
        var ctype = [[${ctype}]];
        var menuSub = [[${menuSub}]];
    </script>
    <style type="text/css">
        .form-row{
            float: left;
            width: 30%;
            padding: 20px;
        }
    </style>
</head>
<body>
<div>
    <!-- Main Content -->
    <div class="page-wrapper">
        <div class="container-fluid">
            <span th:replace="frame/fm/res :: breadcrumb"></span>
            <input type="hidden" id="ObjId" attr="delUrl='/user/delUserAttach'"/>
            <input type="hidden" id="upLoadId"/>
            <div class="pills-struct">
                <ul role="tablist" class="nav nav-pills" id="myTabs_9">
                    <li class="active" role="presentation">
                        <a aria-expanded="true" data-toggle="tab" role="tab" id="home_tab_9" href="#home_9">
                            <i>基础信息</i>
                        </a>
                    </li>
                    <li role="presentation" class="" id="userPro">
                        <a data-toggle="tab" id="profile_tab_9" role="tab" href="#profile_9" aria-expanded="false">
                            <i>教师风采</i>
                        </a>
                    </li>
                </ul>
                <div class="tab-content" id="myTabContent_9">
                    <div id="home_9" class="tab-pane fade active in" role="tabpanel">
            <!-- Row -->
                        <div class="row">
                            <div class="col-sm-12 col-xs-12 col-md-12 " style="background-color: white;">
                                <div class="form-wrap">
                                    <form onsubmit="return updateUser.commitUpdate(this);" action="#" class="form-horizontal">
                                        <div class="form-group form-row" style="margin-left: 25px;">
                                            <div class="input-group">
                                                <div class="input-group-addon"><font color="red">登陆名称</font></div>
                                                <input type="text" class="form-control" placeholder="请输入用户名称" name="loginName" id="loginName"/>
                                            </div>
                                        </div>
                                        <div class="form-group form-row" style="margin-left: 25px;">
                                            <div class="input-group">
                                                <div class="input-group-addon">真实姓名</div>
                                                <input type="text" class="form-control" placeholder="请输入真实姓名" name="trueName" id="trueName"/>
                                            </div>
                                        </div>
                                        <div class="form-group form-row" style="margin-left: 25px;">
                                            <div class="input-group">
                                                <div class="input-group-addon">性别</div>
                                                <div class="form-control">
                                                    <div class="radio-inline pl-0" style="padding-top: 0px;">
                                                            <span class="radio radio-info">
                                                                <input type="radio" name="sex" id="radio_5" value="1" checked="checked"/>
                                                            <label for="radio_5">男</label>
                                                            </span>
                                                    </div>
                                                    <div class="radio-inline" style="padding-top: 0px;">
                                                            <span class="radio radio-info">
                                                                <input type="radio" name="sex" id="radio_6" value="0"/>
                                                            <label for="radio_6">女</label>
                                                            </span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group form-row" style="margin-left: 25px;">
                                            <div class="input-group">
                                                <div class="input-group-addon">QQ</div>
                                                <input type="tel" class="form-control" placeholder="请输入你的QQ" name="qqCode" id="qqCode"/>
                                            </div>
                                        </div>
                                        <div class="form-group form-row" style="margin-left: 25px;">
                                            <div class="input-group">
                                                <div class="input-group-addon">QQ昵称</div>
                                                <input type="text" class="form-control" placeholder="请输入你的QQ名称" name="qqName" id="qqName"/>
                                            </div>
                                        </div>
                                        <div class="form-group form-row" style="margin-left: 25px;">
                                            <div class="input-group">
                                                <div class="input-group-addon">手机</div>
                                                <input type="tel" class="form-control" placeholder="请输入你的联系号码" name="tel" id="tel"/>
                                            </div>
                                        </div>
                                        <div class="form-group form-row" style="margin-left: 25px;">
                                            <div class="input-group">
                                                <div class="input-group-addon">微信号</div>
                                                <input type="text" class="form-control" placeholder="请输入你的微信账号" name="wechatCode" id="wechatCode"/>
                                            </div>
                                        </div>
                                        <div class="form-group form-row" style="margin-left: 25px;">
                                            <div class="input-group">
                                                <div class="input-group-addon">微信昵称</div>
                                                <input type="text" class="form-control" placeholder="请输入的你微信名称" name="wechatName" id="wechatName"/>
                                            </div>
                                        </div>

                                        <div class="form-group form-row" style="margin-left: 25px;">
                                            <div class="input-group">
                                                <div class="input-group-addon">邮箱</div>
                                                <input type="text" class="form-control" placeholder="请输入你的电子邮箱" name="email" id="email"/>
                                            </div>
                                        </div>
                                        <div class="form-group form-row" style="margin-left: 25px;">
                                            <div class="input-group">
                                                <div class="input-group-addon">地市</div>
                                                <select class="form-control" name="cityName" id="cityName">
                                                    <option value="南京">南京</option>
                                                    <option value="苏州">苏州</option>
                                                    <option value="南通">南通</option>
                                                    <option value="淮安">淮安</option>
                                                    <option value="宿迁">宿迁</option>
                                                    <option value="连云港">连云港</option>
                                                    <option value="徐州">徐州</option>
                                                    <option value="常州">常州</option>
                                                    <option value="镇江">镇江</option>
                                                    <option value="无锡">无锡</option>
                                                    <option value="泰州">泰州</option>
                                                    <option value="盐城">盐城</option>
                                                    <option value="扬州">扬州</option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group form-row" style="margin-left: 25px;">
                                            <div class="input-group">
                                                <div class="input-group-addon">职位</div>
                                                <select class="form-control" name="duty" id="duty">

                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group form-row" style="margin-left: 25px;">
                                            <div class="input-group">
                                                <div class="input-group-addon">头像</div>
                                                <input type="text" class="form-control" name="photo" id="photo" placeholder="请输入头像地址"/>
                                            </div>
                                        </div>
                                        <div class="form-group form-row" style="margin-left: 25px;display: none;" id="topPurchaseNum">
                                            <input type="hidden" id="userCount" value=""/>
                                            <div class="input-group">
                                                <div class="input-group-addon">购买课时数</div>
                                                <input type="text" class="form-control" readonly="readonly" name="purchaseNum" id="purchaseNum" style="width: 55%;"/>
                                                <button type="button" id="getUserCount" class="btn btn-primary btn-icon-anim btn-square btn-sm" style="margin-left: 10px;width: 40%;margin-top: 5px;" onclick="updateUser.queryUserCountByUserId();"><i class="icon-magic-wand-update"></i></button>
                                            </div>
                                        </div>
                                        <div class="form-group form-row" style="margin-left: 25px;">
                                            <div class="input-group">
                                                <div class="input-group-addon"><font color="red">学校地址</font></div>
                                                <span class="col-md-12" style="width: 150%">
                                                        <input type="text" name="orgName" id="orgName" readonly="readonly" style="margin-left: -15px;border: 1px solid rgba(33, 33, 33, 0.12); border-radius: 0;color: #212121;font-size:14px;padding:6px 12px;background-color: #fff;box-shadow: none;width:75%;height: 42px;" placeholder="请选择组织结构" />
                                                        <input type="hidden" name="orgId" id="orgId"/>
                                                        <button type="button" id="getOrgList" class="btn btn-primary btn-icon-anim btn-square btn-sm" style="margin-left: 10px;width: 25%;" onclick="updateUser.queryOrg();"><i class="icon-magic-wand-select"></i></button>
                                                    </span>
                                            </div>
                                        </div>
                                        <div class="form-actions mt-10">
                                            <div class="row">
                                                <div class="col-md-12">
                                                    <div class="row">
                                                        <div class="col-md-offset-4 col-md-9" style="padding-bottom: 20px;">
                                                            <button type="submit" id="commit" class="btn btn-primary btn-icon-anim btn-square btn-sm" style="width: 80px;"><i class="icon-heart-com"></i></button>
                                                            <button type="button" id="cancel" class="btn btn-primary btn-icon-anim btn-square btn-sm" style="width: 80px;margin-left:20px"><i class="icon-shield-qx"></i></button>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                                <div class="col-sm-12">
                                    <div class="panel panel-default card-view">
                                        <div class="clearfix"></div>
                                        <div class="panel-wrapper collapse in">
                                            <div class="panel-body">
                                                <div class="table-wrap">
                                                    <table id="tableList"></table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="profile_9" class="tab-pane fade" role="tabpanel">
                        <!-- Row -->
                        <div class="row">
                            <div class="col-md-12">
                                <div class="panel panel-default card-view">
                                    <!--头部，相册选择和格式选择-->
                                    <div id="bodyCollectionDiv">
                                        <!-- 公告图片start -->
                                        <div style="widht:600px;margin-top: 15px;"  class="case">
                                            <div class="upload" id='case1' data-num="10" action="/user/addUserAttach" data-delUrl="/user/delUserAttach"></div>
                                        </div>
                                        <!--  公告图片 end-->
                                        <!-- textarea编辑框 start-->
                                        <div id="textareaContent" class="panel-wrapper collapse in"  style="width: 800px;">
                                            <div class="panel-body">
                                                <label class="notic-title-lable">教师风采:</label>
                                                <textarea class="tinymce" id="userProfile"></textarea>
                                            </div>

                                        </div>
                                        <!-- textarea编辑框 end-->
                                    </div>
                                    <div onclick="updateUser.saveUserDesc()">
                                        <button class="btn btn-primary btn-icon-anim btn-square btn-sm" style=" width: 120px;">
                                            <i class="icon-heart-com"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<span th:include="frame/fm/res :: uploadJs"></span>
</body>
<!--<script type="text/javascript" th:src="${application.staticUrl}+'base/user/js/addUser.js'"></script>-->
<script type="text/javascript" th:src="${application.staticUrl}+'base/user/js/updateUser.js'"></script>
</html>